///**
// * <p>Description: []</p>
// *
// * @ClassName HystrixConfiguration
// * Created on 2018/11/30.
// * @author <a href="mailto: sunxianwei@camelotchina.com">sunxiaozhe</a>
// * @version 1.0
// * 北京柯莱特科技有限公司 易用云
// */
//package com.camelot.zuul.configuration;
//
//import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
//import org.springframework.boot.web.servlet.ServletRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * <p>Description: []</p>
// * @ClassName HystrixConfiguration
// * Created on 2018/11/30.
// *
// * @author <a href="mailto: sunxianwei@camelotchina.com">sunxiaozhe</a>
// * @version 1.0
// *   北京柯莱特科技有限公司 易用云
// */
//@Configuration
//public class HystrixConfiguration {
//
//    @Bean(name = "hystrixRegistrationBean")
//    public ServletRegistrationBean servletRegistrationBean() {
//        ServletRegistrationBean registration = new ServletRegistrationBean(
//                new HystrixMetricsStreamServlet(), "/hystrix.stream");
//        registration.setName("hystrixServlet");
//        registration.setLoadOnStartup(1);
//        return registration;
//    }
//
//    @Bean(name = "hystrixForTurbineRegistrationBean")
//    public ServletRegistrationBean servletTurbineRegistrationBean() {
//        ServletRegistrationBean registration = new ServletRegistrationBean(
//                new HystrixMetricsStreamServlet(), "/actuator/hystrix.stream");
//        registration.setName("hystrixForTurbineServlet");
//        registration.setLoadOnStartup(1);
//        return registration;
//    }
//}
